package cn.com.dycc.party_org.organize.entity;

import java.io.Serializable;

public class OrganizeEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 593303721287119704L;
	
	private String dept_id;			//单位序号
	private String dept_name;		//党组织名称
	private String pid;				//上级党组织ID
	private String own_dept_id;		//归属单位ID
	private String dept_contacts;	//党组织联系人
	private String dept_tel;		//党组联系人电话
	private Integer order_no;		//排列顺序
	private String remark;			//备注
	private String state;			//状态
	
	private String pid_dept_name;	//党组织上级部门名称
	private String own_dept_name;	//归属部门
	private String dic_state;		//接收字典state字典表信息
	
	public OrganizeEntity(){}

	
	public OrganizeEntity(String dept_id, String dept_name, String pid, String own_dept_id, String dept_contacts,
			String dept_tel, Integer order_no, String remark, String state, String pid_dept_name, String own_dept_name,
			String dic_state) {
		super();
		this.dept_id = dept_id;
		this.dept_name = dept_name;
		this.pid = pid;
		this.own_dept_id = own_dept_id;
		this.dept_contacts = dept_contacts;
		this.dept_tel = dept_tel;
		this.order_no = order_no;
		this.remark = remark;
		this.state = state;
		this.pid_dept_name = pid_dept_name;
		this.own_dept_name = own_dept_name;
		this.dic_state = dic_state;
	}


	public String getPid_dept_name() {
		return pid_dept_name;
	}


	public void setPid_dept_name(String pid_dept_name) {
		this.pid_dept_name = pid_dept_name;
	}


	public String getState() {
		return state;
	}



	public void setState(String state) {
		this.state = state;
	}



	public String getDept_id() {
		return dept_id;
	}

	public void setDept_id(String dept_id) {
		this.dept_id = dept_id;
	}

	public String getDept_name() {
		return dept_name;
	}

	public void setDept_name(String dept_name) {
		this.dept_name = dept_name;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public String getOwn_dept_id() {
		return own_dept_id;
	}

	public void setOwn_dept_id(String own_dept_id) {
		this.own_dept_id = own_dept_id;
	}

	public String getDept_contacts() {
		return dept_contacts;
	}

	public void setDept_contacts(String dept_contacts) {
		this.dept_contacts = dept_contacts;
	}

	public String getDept_tel() {
		return dept_tel;
	}

	public void setDept_tel(String dept_tel) {
		this.dept_tel = dept_tel;
	}

	public Integer getOrder_no() {
		return order_no;
	}

	public void setOrder_no(Integer order_no) {
		this.order_no = order_no;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOwn_dept_name() {
		return own_dept_name;
	}

	public void setOwn_dept_name(String own_dept_name) {
		this.own_dept_name = own_dept_name;
	}

	public String getDic_state() {
		return dic_state;
	}

	public void setDic_state(String dic_state) {
		this.dic_state = dic_state;
	}

	@Override
	public String toString() {
		return "OrganizeEntity [dept_id=" + dept_id + ", dept_name=" + dept_name + ", pid=" + pid + ", own_dept_id="
				+ own_dept_id + ", dept_contacts=" + dept_contacts + ", dept_tel=" + dept_tel + ", order_no=" + order_no
				+ ", remark=" + remark + ", state=" + state + ", pid_dept_name=" + pid_dept_name + ", own_dept_name="
				+ own_dept_name + ", dic_state=" + dic_state + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((dept_id == null) ? 0 : dept_id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		OrganizeEntity other = (OrganizeEntity) obj;
		if (dept_id == null) {
			if (other.dept_id != null)
				return false;
		} else if (!dept_id.equals(other.dept_id))
			return false;
		return true;
	}
	
	

}
